package cn.tedu.ivos.geofence.pojo.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Size;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

/**
 * 电子围栏表
 *
 * @TableName geofence
 */
@Data
public class Geofence {

    @Schema(description = "电子围栏id")
    private Long id;

    @Schema(description = "电子围栏名称")
    @Size(max = 50, message = "名称不能超过50个字符")
    private String name;

    @Schema(description = "电子围栏状态 启用1 禁用0")
    @Length(max = 10, message = "状态字段长度不超过10")
    private String status;

    @Schema(description = "电子围栏坐标点")
    private String position;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "更新时间")
    private Date updateTime;

}
